#pragma once
#include "./base.hpp"

void PrintStd(std::string out);
std::string GetStdInput();

class Jail:public HouseBase{
public:
	bool PassFunction(User& user,std::vector<Land>& map,std::unordered_map<int,User*>& users) override{
		PrintStd("欢迎来到监狱");
		if (user.GetStatus()!=UserStatus::Jail) {
			user.SetStatus(UserStatus::Jail);
			user.SetStopNum(JAIL_DAY);
			PrintStd("你将被暂停:"+std::to_string(JAIL_DAY-1));
		}
		return false;
	};
	void Clear() override{};
	char MapChar() override{
		return 'P';
	};
	Color MapColor() override{
		return Green;
	};
};
